import 'package:freezed_annotation/freezed_annotation.dart';

part 'position_request.g.dart';
part 'position_request.freezed.dart';

@freezed
class PositionRequest with _$PositionRequest {
  const factory PositionRequest({
    @JsonKey(name: 'p') required String page,
    @JsonKey(name: 't') required String outTime,
    @JsonKey(name: 'id') required String id,
    @JsonKey(name: 'num') required String pageSize,
  }) = _PositionRequest;

  factory PositionRequest.fromJson(Map<String, dynamic> json) =>
      _$PositionRequestFromJson(json);
}
